package com.castle.fortress.admin.cms.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * cms 分页标签 实体类
 *
 * @author castle
 * @since 2022-03-09
 */
@Data
@ApiModel(value = "CmsPageDto", description = "分页标签")
public class CmsPageDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "是否有前一页")
	@JsonProperty("haspre")
	private Boolean haspre=false;
	@ApiModelProperty(value = "前一页访问地址")
	@JsonProperty("pre")
	private String pre="";
	@ApiModelProperty(value = "是否有下一页")
	@JsonProperty("hasnext")
	private Boolean hasnext=false;
	@ApiModelProperty(value = "下一页访问地址")
	@JsonProperty("next")
	private String next="";
	@ApiModelProperty(value = "当前页")
	@JsonProperty("current")
	private Integer current=1;
	@ApiModelProperty(value = "当前页访问地址")
	@JsonProperty("currenturl")
	private String currenturl="";
	@ApiModelProperty(value = "当前页之前的访问路径")
	@JsonProperty("prelist")
	private List<Map<String,Object>> prelist=new ArrayList<>();
	@ApiModelProperty(value = "当前页之前的页码总数")
	@JsonProperty("presize")
	private Integer presize=0;
	@ApiModelProperty(value = "当前页之后的访问路径")
	@JsonProperty("nextlist")
	private List<Map<String,Object>> nextlist=new ArrayList<>();
	@ApiModelProperty(value = "当前页之后的页码总数")
	@JsonProperty("nextsize")
	private Integer nextsize=0;
	@ApiModelProperty(value = "总页数")
	@JsonProperty("totalpage")
	private Integer totalpage=0;
	@ApiModelProperty(value = "全部页码列表")
	@JsonProperty("list")
	private List<Map<String,Object>> list=new ArrayList<>();
	@ApiModelProperty(value = "首页")
	@JsonProperty("first")
	private String first="";
	@ApiModelProperty(value = "末页")
	@JsonProperty("end")
	private String end="";

}
